package com.tree.backend.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tree.backend.common.Result;
import com.tree.backend.entity.dto.CustomerDemandDTO;
import com.tree.backend.entity.pojo.CustomerDemand;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tree.backend.entity.vo.CustomerDemandVO;

import java.util.List;

/**
 * <p>
 * 客户用电需求表 服务类
 * </p>
 *
 * @author tree
 * @since 2025-11-09
 */
public interface ICustomerDemandService extends IService<CustomerDemand> {

    Result<Page<CustomerDemandVO>> getList(CustomerDemandDTO customerDemandDTO);
    
    /**
     * 更新客户需求
     * @param customerDemandDTO 客户需求数据传输对象
     * @return 更新结果
     */
    Result<Boolean> updateCustomerDemand(CustomerDemandDTO customerDemandDTO);
    
    /**
     * 批量添加客户需求，自动填充随机数据
     * @param customerDemandDTOList 客户需求数据传输对象列表
     * @return 添加结果
     */
    Result<Boolean> batchAddWithRandomData(List<CustomerDemandDTO> customerDemandDTOList);
}
